package cn.wolfcode.luowowo.hotel.service.impl;

import cn.wolfcode.luowowo.hotel.mapper.HotelServiceMapper;
import cn.wolfcode.luowowo.hotel.domain.HotelService;
import cn.wolfcode.luowowo.hotel.service.IHotelServiceService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class HotelServiceServiceImpl implements IHotelServiceService {

    @Autowired
    private HotelServiceMapper hotelServiceMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return hotelServiceMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelService record) {
        return hotelServiceMapper.insert(record);
    }

    @Override
    public HotelService selectByPrimaryKey(Long id) {
        return hotelServiceMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(HotelService record) {
        return hotelServiceMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<String> getByIds(Long[] serviceIdsArr) {
        return hotelServiceMapper.selectByIds(serviceIdsArr);
    }

}
